package com.lb.uts.entity;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>服务注册</p>
 *
 * @author: liangb
 */
public class ClientDetail implements Serializable {

    private String ip;

    @NotNull(message = "port不能为空")
    private Integer port;

    private String systemName;

    /**
     * 权重
     */
    @Min(value = 0, message = "权重不能小于0")
    private int weight;

    @NotNull(message = "任务列表不能为空")
    List<ScheduleJob> taskJobDetailsList;

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public List<ScheduleJob> getTaskJobDetailsList() {
        return taskJobDetailsList;
    }

    public void setTaskJobDetailsList(List<ScheduleJob> taskJobDetailsList) {
        this.taskJobDetailsList = taskJobDetailsList;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
}
